<?php

namespace App\Models;

use App\Models\Traits\Filterable;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Members extends Model
{
    use HasFactory;
    use Filterable;

    protected $guarded = [];

    public function reports()
    {
        return $this->hasMany(Reports::class);
    }
    public function center()
    {
        return $this->belongsTo(Centers::class, 'centers_id');
    }

    public function skills()
    {
        return $this->belongsToMany(Skill::class);
    }
    public function rehabilitations()
    {
        return $this->belongsToMany(Rehabilitation::class);
    }
    public function behaviors()
    {
        return $this->belongsToMany(Behavior::class);
    }

    public function diseases()
    {
        return $this->belongsToMany(Diseases::class);
    }
    public function walkings()
    {
        return $this->belongsToMany(Walking::class);
    }
}
